package org.vaadin.nf4v.ext.config.secure;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Generic security annotation.
 * Allows to apply security constraints to windows and pages.
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Secure {

    /**
     * @return required roles list
     */
    String[] roles();

    /**
     * @return forbidden roles list
     */
    String[] denyRoles();

    /**
     * @return required permissions list
     */
    String[] permissions();
}
